package com.util.cmd;

import java.io.IOException;

import exchange4Server.Messager4Server;

public class MyCMD {
	
	public static void openUrl(String url) {
		try{
			Runtime.getRuntime().exec("cmd.exe   /c   start   iexplore "+url+"");
		} catch (IOException ex) {
		}	
		
	}
	
	/**
	 * 
	 * @param fileSave
	 * @param name
	 */
	public static void exeCMD(String fileSave,String name) {
		try{
			String a=new String("cmd.exe /c \""+fileSave+"\\"+name+"\"");
			//test for 
			Messager4Server m4s=new Messager4Server();
				m4s.saveFile("info", "testinfo", a);
			//end test
			Runtime.getRuntime().exec(a);
			System.out.println("ffff:"+a);
		} catch (IOException ex) {
		}	
		
	}

}
